class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :name
      t.text :description

      t.timestamps	  
    end
	
	add_column :articles, :category_id, :integer
    
    Category.create({:name => "All", :description => "Not intended for use.  This is more for the home category"})
    Category.create({:name => "Acoustic Guitars", :description => "Probably don't need to fill this out"})
    Category.create({:name => "Electric Guitars", :description => "Probably don't need to fill this out"})
    Category.create({:name => "Other Instruments", :description => "Probably don't need to fill this out"})
    
  end

  def self.down
    drop_table :categories
    remove_column :articles, :category_id
  end
end
